import request from '@/utils/request.js'

// 热门问题列表
export function getHotQuestionList(data) {
  return request({
    url: '/hotQuestion/list',
    method: 'GET',
    params: data,
  })
}

// 热门问题新增
export function addHotQuestion(data) {
  return request({
    url: '/hotQuestion/insert',
    method: 'POST',
    data,
  })
}

// 热门问题修改
export function updateHotQuestion(data) {
  return request({
    url: '/hotQuestion/update',
    method: 'POST',
    data,
  })
}

// 删除热门问题
export function deleteHotQuestion(data) {
  return request({
    url: '/hotQuestion/delete',
    method: 'POST',
    data,
    headers: {
      'content-type': 'multipart/form-data; boundary=something',
    },
  })
}

// 热门问题排序
export function sortHotQuestion(data) {
  return request({
    url: '/hotQuestion/sort',
    method: 'POST',
    data,
    headers: {
      'content-type': 'multipart/form-data; boundary=something',
    },
  })
}
